package com.iflytek.jcy.supervise.job.common.enums;

/**
 * 接口状态
 *
 * @author <a href=mailto:ktyi@iflytek.com>伊开堂</a>
 * @date 2019-08-07 09:01
 */
public interface ResultType {

    int SUCCESS = 0;

    default boolean isSuccess() {
        return this.getCode() == ResultType.SUCCESS;
    }

    Integer getCode();

    String getDesc();
}
